<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<%@page import="ygflower.domain.Flower"%>
<%@page import="ygflower.controller.FlowerDetailController"%>
<%@page import="ygflower.controller.FlowerUploadController"%><html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
<%
	Flower flower = (Flower)request.getAttribute(FlowerDetailController.viewFlower);
	if(flower == null){
%>	<h3>没有找到花</h3>
<%
	return;
	}
%>
<table>
      <tr>
          <td>
              <%=flower.getName()%>  <%=flower.getMarketPrice()%>
          </td>
      </tr>
      <tr>
      	<td>
      		<img alt="<%=flower.getName() %>" src="<%=FlowerUploadController.folder %>/<%=flower.getPicture() %>">
      	</td>
      </tr>
</table>
</body>
</html>